﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LEET.CommonInterfaces.Compilers;
using LEET.LEETCommon.Model;
using LEET.LEETCommon;
using LEET.CommonInterfaces.TestControls;

namespace LEET.StandardModuals.Instructions
{
    public class Comment : Instruction
    {
        private String comment;

        public Comment(String[] args) : base(args) 
        {
            comment = args[1].Trim();
            InstructionType = NodeTypes.COMMENT_TYPE;
            Name = comment;
        }

        public static IAutomationActionResult StaticCall()
        {
            //TODO
            return null;
        }

        public override String RenderStaticCall()
        {
            //TODO
            return "LEET.StandardModuals.Instructions.Comment.StaticCall()";
        }

        [Obsolete("This should now be replaced by RenderStaticCall", false)]
        public override StringBuilder RenderMethod(int i, AssertionSet asserts)
        {
            return new StringBuilder();
        }

        [Obsolete("This should now be replaced by RenderStaticCall", false)]
        protected override string MethodBody(AssertionSet asserts)
        {
            throw new NotImplementedException();
        }

        [Obsolete("This should now be replaced by RenderStaticCall", false)]
        public override string RenderMethodCall(int i)
        {
            return "// " + comment + " //";
        }

        [Obsolete("This should now be replaced by RenderStaticCall", false)]
        protected override string RenderedMethodName(int i)
        {
            throw new NotImplementedException();
        }

        public override string PlainText()
        {
            return "";
        }
    }
}
